//
//  ButtonView.swift
//  OverseasOnlineShopping
//
//  Created by 唐先才 on 16/3/8.
//  Copyright © 2016年 唐先才. All rights reserved.
//

import UIKit

class ButtonView: UICollectionReusableView {
    
    private let headBtn = UIButton()
    private let headImg = UIImageView()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        self.createUI()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func createUI() {
        headBtn.frame = CGRectMake(0, 0, WIDTH, 60)
        headBtn.setBackgroundImage(UIImage(named: "main_allspecial"), forState: .Normal)
        headBtn.addTarget(self, action: "moreSpecial", forControlEvents: .TouchUpInside)
        addSubview(headBtn)
        
        headImg.frame = CGRectMake(0, 70, WIDTH, 60)
        headImg.image = UIImage(named: "main_promise")
        addSubview(headImg)
    }
    
    func moreSpecial() {
        
    }
}
